<?php
	$list = RoleController::findAll();
?>
	  <div id="newEntity">
		<span>
		  <a href="../<?php echo $www;?>/index_role.php?action=new">New Role</a>
		</span>
	  </div>

	  <table id="listEntity">
		<tr>
		  <th>ID</th>
		  <th>NAME</th>
		  <th>&nbsp;</th>
		  <th>&nbsp;</th>
		</tr>
	<?php
		foreach ($list as $r){
	?>
		<tr>
		  <td><?php print $r->id?>&nbsp;</td>
	      <td><?php print $r->name?>&nbsp;</td>
		  <td><a href="../<?php echo $www;?>/index_role.php?action=update&amp;id=<?php print $r->id?>">Edit</a></td>
		  <td><a href="javascript:deleteObject('<?php print $r->id?>','role')">Delete</a></td>
		</tr>
	<?php
		}
	?>	
	  </table>
